from django.conf.urls.defaults import *
import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^admin/', include(admin.site.urls)),
    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_PATH + "/site_media/"}),
    (r'^$', 'pastesite.pastebin.views.create'),
    (r'^register/$', 'pastesite.pastebin.views.register'),
    (r'^about/$', 'pastesite.pastebin.views.about'),
    (r'^login/$', 'pastesite.pastebin.views.user_login'),
    (r'^logout/$', 'pastesite.pastebin.views.user_logout'),
    (r'^ranks/$', 'pastesite.pastebin.views.ranks'),
    (r'^user/(?P<username>\w+)/$', 'pastesite.pastebin.views.user'),
    (r'^paste/', include('pastesite.pastebin.urls')),
)
